package com.it.aiDispatch;

import com.it.entity.dispatch.AiClaimDispatch;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;
import utils.R;

import java.util.List;

@FeignClient(value = "ai-dispatch")
public interface DispatchApi {

    // 修改调度表状态
    @PutMapping("/aiClaimDispatch/updateStatus")
    R updateStatus(@RequestParam("reportNo") String reportNo,
                   @RequestParam("surveyWorkNo") String surveyWorkNo,
                   @RequestParam("dispatchStatus") Integer dispatchStatus);

    //根据报案号查询所有调度记录
    @GetMapping("/aiClaimDispatch/selectByReportNo")
    List<AiClaimDispatch> selectByReportNo(@RequestParam("reportNo") String reportNo);

}

